package com.knowswift.common.bean.project.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;


@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ModuleVO {
    private String moduleId;
    private Integer moduleType;
    private String moduleSerialCode;
    @NotBlank(message = "名称不可为空")
    private String moduleName;
    @NotNull(message = "排序不可为空")
    private Integer moduleOrder;
    private List<ProjectVO> projects;
    private Integer monitorInterval;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    private String keyword;
    private Long pageNo;
    private Long pageSize;
    private Integer projectCount;
    private Boolean deleted;
}
